import { MenuList } from "../../api/Home";

const homeActions = {
  getMenuList() {
    return async (dispatch) => {
      let payload = await MenuList().then(res=>{
        return res.data.data;
      })
      dispatch({
        type: "MenuList",
        payload,
      });
    };
  },
};
export default homeActions;
